When you code in a functional language, you think about solutions to problems differently. 当使用函数式语言编写代码时,您会以不同的方式思考问题的解决方案。
Although XQuery is a functional language, this fact is not always recognized in the functional language hype. 尽管XQuery是一种功能语言,但在功能语言热潮中,人们并不总是认可这个事实。
Functions in a functional language are considered first class, meaning that functions can appear anywhere that any other language construct ( such as variables) can appear. 函数式语言中的函数称为一级函数,这意味着函数可在任何其他语言结构(比如变量)可能出现的地方出现。
That's the behavior you'd expect within a functional language. 这正是在函数性语言中期待的行为。
One solution to this problem is to use a functional language designed to scale. 对于这个问题,一个解决方案是使用专门针对伸缩设计的函数语言。
In a functional language, however, this is not the case. 但在函数语句中,情况不是这样。
XSLT is a functional language rather than a procedural one. XSLT是一种函数式语言而不是过程性语言。
In fact, this is precisely what's taking place: In a functional language, functions are first-class concepts, like variables and constants, and so are syntactically treated as such. 事实上,真正发生的事情是:在函数语言中,就像变量和常量一样,函数是一级概念,所以语法上也是一样地处理。
If the framework ( or if you choose a functional language such as Clojure or Scala the language) can optimize the underlying implementation, you automatically benefit. 如果框架(或者如果您选择一门函数语言,如Clojure或Scala语言)能优化底层实现,那么您就可以自动从中获益。
Using XQuery ( a functional language designed to query collections of XML data) with native XML database systems can be extremely useful in some situations. 在某些情况下,在原生XML数据库系统中使用XQuery(一种用于查询XML数据集合的函数型语言)可能非常有用。
Clojure: Clojure is a modern dialect of Lisp recast as a purely functional language that runs on the JVM. Clojure:Clojure是一个现代Lisp语言,重写为纯函数式语言,在JVM中运行。
This will seem familiar to most readers who have programmed in either an object-oriented language or a functional language. 这似乎对大多数曾经用面向对象的语言或方法语言编程的读者来说是熟悉的。
Blue also incorporates some functional language aspects. Blue也结合了函数式语言的一些方面。
In a functional language, a program is defined as a function composed of other functions, the evaluation of which leads to the final result. 在函数式语言中,程序被定义成由其他函数组成的函数,函数求值形成最终的结果。
Notice that the phrase "first functional language" here is apt, as everything is based on functions. 注意,这里所说的“第一种函数语言”十分贴切,因为一切都基于函数。
In a functional language, this would be handled via a higher-order function instead. 在函数式语言中,可利用高阶函数来处理。
The differences have to do with the ways that Scala fuses object and functional language design, and they're well worth exploring this month. 不同的是Scala融合了对象和函数语言设计,这非常值得我们在本期文章中进行讨论。
If you caught my Crossing borders article on concurrent programming with Erlang, another functional language, you've had a bit of a head start. 如果您阅读过我的跨越边界系列中关于使用另外一种函数性语言Erlang进行并发性编程的文章,可能已经有了一定的基础。
Libvirt supports the most popular system programming languages ( C and C++), a variety of scripting languages, and even a unified functional language ( Objective caml). libvirt支持最流行的系统编程语言(C和C++)、多种脚本语言、甚至一种统一的函数型语言(Objectivecaml)。
Ultimately, and surprisingly, JavaScript is more of a functional language than an object-oriented one, and it uses some clever syntax and semantics to simulate highly sophisticated behaviors. 然而,从本质上讲,JavaScript更像是一种函数式语言,而非面向对象的语言,它使用一些智能的语法和语义来仿真高度复杂的行为。
But I've come to appreciate the raw productivity and power that a functional language can provide. 但是我开始欣赏函数性语言带来的生产力和强大力量。
Now that you've seen the basics of a functional language, you can begin to see how you could live with no side effects and only limited support for state. 现在已经看到了函数性语言的基础,接下来可以开始了解,您要如何在没有副作用和对状态只有有限支持的环境下生活。
For the programmers who want Perl to be a more functional language, map and grep can satisfy the craving. 对于那些希望Perl成为具有更强函数性语言的程序员,map和grep可以满足此需求。
Functional language constructs such as higher-order and first-class functions allow me to climb one more rung up the abstraction ladder and focus more on what the code does rather than how it does it. 函数语言结构,如高阶和一级函数,能让我对抽象的理解更进一步,让我更多地将精力放在代码能做什么而不是怎么做上。
Application of functional language method in interactive web programming 函数式语言方法在网络交互程序中的应用
F#, the first primarily functional language supported by Microsoft, is based on OCaml. F&微软支持的第一个主要的函数式语言,其基于OCaml。
F# is a functional language being developed by Microsoft Research. F是由微软研究院开发的一种函数式语言。
The expression orientated nature of Accelerator computations make them a nice fit for a functional language like F#. 它的表达式能适应Accelerator计算,使得它非常适合F那样的函数式语言。
On top of this, the templating layer is built like a functional language, which allows you to compose pages with one other ( using folds and projections) in a simple and concise fashion. 基于这一点,我们采取类似于函数式语言的方式来构建模板层,这样用户就可以一种简洁的方式组合多个页面(通过折叠和投影)了。
Scala is functional: Scala is also a functional language in the sense that every function is a value. Scala是函数式的:Scala还是一个函数式语言,在某种意义上来讲所有函数都是数值。